<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <!-- IE将使用最新的引擎渲染网页 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 页面的宽度与设备屏幕的宽度一致
         初始缩放比例 1:1 -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Demo</title>
    <meta name="author" content="www.cnblogs.com/kemingli">
    <!-- 引入外部bootstrap的css文件(压缩版)，版本是3.3.7 -->
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script>
    <script src="jquery/jquery-3.4.1.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <script
    <style>
        /* Make the image fully responsive */
        .carousel-inner img {
            width: 100%;
            height: 100%;
        }
    </style>
    <![endif]-->
</head>
<body class="container-fluid" >
<style>
    ::-webkit-scrollbar {display:none}
</style>
<div style=" width:0px;   height: 0px;  overflow-y: scroll;">
</div>
<!-- start : demo -->
<!-- 定义导航条的部分 -->
<!-- navbar-inverse 反色的导航条 -->
<!-- navbar-static-top 圆角变为方角 -->
<nav class="navbar navbar-default navbar-static-top ">
    <div class="row">
        <div class="col-md-12 bg-info">
            <div class="row">
                <div class="col-xs-7">
                    <img src="images/title.png" width="70" height="70" align="left">
                    <h2>爱普网课交互平台</h2><small>&nbsp;&nbsp;&nbsp;App Online course interactive platform</small></div>
                <div class="col-xs-5 text-right">
                    <span class= "glyphicon glyphicon-user"></span>
                    <label id="u_name"></label><br>
                    <label id="r_name"></label><br>
                    <span class= "glyphicon glyphicon-time"></span>
                    <label id="s_time"></label>
                </div>
            </div>
        </div>
        <div class="collapse navbar-collapse" id="TaoistsNavBar">
            <ul class="nav navbar-nav">
                <li class="dropdown">
                <li><a href="../pages/sellcount.html" target="frmMain">销售情况</a>

                </li>
                <li><a href="../pages/person.html" target="frmMain">角色管理</a></li>
                <li><a href="../pages/contactShow.html" target="frmMain">用户评论</a></li>
                <li><a class=" active" href="index.html">返回登录</a></li>
            </ul>
        </div>
    </div>
</nav>
<!-- end : demo -->
<div>
    <iframe name="frmMain" width=100% height=600 style="border: 0" src="/gotosell"></iframe>
</div>
<script src="bootstrap/js/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
</body>
<script>
    $(document).ready(function(){
        getUserInfo();
        function getUserInfo() {
            $.ajax({
                url:"user/getUserInfo",
                type:"post",
                dataType:"json",
                success:function (result) {
                    // alert(JSON.stringify(result));
                    var u_name = result.object.u_name;
                    var r_name = result.object.r_name;
                    $("#u_name").text(u_name+"您好 ,");
                    $("#r_name").text("您是"+r_name);
                }
            })
        }

        setInterval(function () {
            var now =(new Date()).toLocaleString();
            $('#s_time').text(now);
        },1000)
    });

</script>
</html>